#include"DictProducer.h"
#include<iostream>

using std::cout;

int main()
{
        string path="/home/sakura/all_file/search_engine/conf/config.json";
    Config conf(Configuration::GetInstance(path));
    cout<<" config set success\n";
    SplitToolJieba split(Configuration::GetInstance());
    DictProducer dict("/home/sakura/all_file/search_engine/static/module1",&split);
    cout<<" here build\n";
    dict.buildEndict();
    cout<<" here index\n";
    dict.createIndex();
    cout<<" here store\n";
    dict.store();
}
